package br.com.devteam.sgap.view.interno;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;

import javax.faces.bean.ManagedBean;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import br.com.devteam.base.util.SGAPContantes;

@Controller(value = "beanGeral")
@Scope(value = "session")
@ManagedBean
public class BeanGeral {

	public BeanGeral() {
	}

	public String getSystemTime() {
		String systemTime = "";
		Calendar c = Calendar.getInstance(new Locale("PT", "BR"));
		SimpleDateFormat format = new SimpleDateFormat(
				"EEEE, d 'de' MMMM 'de' yyyy");
		systemTime = format.format(c.getTime());
		return systemTime;
	}

	public String actionHome() {
		return SGAPContantes.PAGE_HOME;
	}

}
